package com.alipay.sofa.demo.db.common.entity;

import java.util.List;

/**
 * 学生list数据传输对象
 * @Author Zhang Da
 * @Date 2020/2/16 15:59
 * @Version 1.0
 */

public class StudentInfoDTO {
    /**
     * 消息id，消息的唯一标识符
     */
    private String messageId;

    /**
     * 数据发送时间，用于消费超时判断
     */
    private Long sendTime;

    /**
     * 是否消费成功（插入数据成功）
     */
    private boolean isConsumeSuccess;

    /**
     * 学生信息list（可含多条学生数据）
     */
    private List<StudentInfo> studentInfoList;

    public List<StudentInfo> getStudentInfoList() {
        return studentInfoList;
    }

    public void setStudentInfoList(List<StudentInfo> studentInfoList) {
        this.studentInfoList = studentInfoList;
    }

    public String getMessageId() {
        return messageId;
    }

    public void setMessageId(String messageId) {
        this.messageId = messageId;
    }

    public long getSendTime() {
        return sendTime;
    }

    public void setSendTime(Long sendTime) {
        this.sendTime = sendTime;
    }

    public boolean isConsumeSuccess() {
        return isConsumeSuccess;
    }

    public void setConsumeSuccess(boolean consumeSuccess) {
        isConsumeSuccess = consumeSuccess;
    }

    @Override
    public String toString() {
        return "StudentInfoDTO{" +
                "messageId='" + messageId + '\'' +
                ", sendTime=" + sendTime +
                ", isConsumeSuccess=" + isConsumeSuccess +
                ", studentInfoList=" + studentInfoList +
                '}';
    }
}
